﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;

namespace ProjectRoughWork
{
    class GameScreen : IScreen
    {
        /// <summary>
        /// Default Constructor
        /// </summary>

        public GameScreen()
        {
            popup = false;
            active = true;
        }

        public virtual void Update()
        {
        }

        public virtual void Draw()
        {
        }

        public bool isPopUp()
        {
            return popup;
        }

        public bool isActive()
        {
            return active;
        }

        /// <summary>
        /// Sets the screen to be active
        /// </summary>

        public void Activate()
        {
            active = true;
        }

        /// <summary>
        /// Sets the scren to be inactive; 
        /// </summary>

        public void Deactivate()
        {
            active = false;
        }

        public virtual void HandleInput(KeyboardState inputKey)
        {
        }

        public virtual void HandleInput(MouseState inputClick)
        {
        }

        public virtual void HandleInput(GamePadState inputButton)
        {
        }

        //Data Members

        protected bool popup;
        protected KeyboardState lastKeyInput;
        protected GamePadState lastButtonInput;
        bool active;
        bool coveredByOtherScreen; //Not sure if I need it

    }
}
